<?php

/**
 * Created by PhpStorm.
 * User: bill-h
 * Date: 2021/10/18
 * Time: 16:49
 * Email: 391878487@qq.com
 */
namespace app\api\controller\v1\user;
use app\Request;
use services\CacheService;

/**
 * 用户类
 * Class UserController
 * @package app\api\controller\store
 */

class UserController
{

    /**
     * 获取用户信息
     * @param Request $request
     * @return mixed
     */
    public function userInfo(Request $request)
    {
        $info = $request->user()->toArray();
        //这里可更新用户数据后返回
        return app('json')->success($info);
    }



}